﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartCity.Passport.Domain.Entites
{
    /// <summary>
    /// 权限
    /// </summary>
    public class Permission
    {
        /// <summary>
        /// 权限ID
        /// </summary>
        [Key]
        public int PermissionId { get; set; }
        /// <summary>
        /// 权限分类 (菜单、页面、按钮、数据)
        /// </summary>
        public string PermissionType { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; }
        /// <summary>
        /// 权限级别 
        /// 0:没有级别,1:一级,2:二级,3:三级
        /// </summary>
        public int PermissionLevenl { get; set; }
        /// <summary>
        /// 权限的值
        /// </summary>
        public string PermissionValue { get; set; }
        /// <summary>
        /// 权限的路径
        /// </summary>
        public string PermissionPath { get; set; }
        /// <summary>
        /// 上级编号
        /// </summary>
        public int ParentId { get; set; }
    }
}
